#!/bin/bash

if [ ! -d out ]; then
    mkdir out
fi

cd out
cmake ../
if [ "$1" = "clean" ]; then
    make clean
fi
cmake --build . -j 4